﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assets.Core
{
    public struct Vector3i
    {
        public Vector3i(int _x, int _y, int _z)
        {
            x = _x;
            y = _y;
            z = _z;
        }

        public int x;
        public int y;
        public int z;

        public static Vector3i Zero
        {
            get
            {
                return new Vector3i(0, 0, 0);
            }
        }

        public static bool operator ==(Vector3i _left, Vector3i _right)
        {
            return (_left.x == _right.x && _left.y == _right.y && _left.z == _right.z);
        }

        public static bool operator !=(Vector3i _left, Vector3i _right)
        {
            return !(_left == _right);
        }

        public static Vector3i operator +(Vector3i _left, Vector3i _right)
        {
            return new Vector3i(_left.x + _right.x, _left.y + _right.y, _left.z + _right.z);
        }

        public static Vector3i operator -(Vector3i _left, Vector3i _right)
        {
            return new Vector3i(_left.x - _right.x, _left.y - _right.y, _left.z - _right.z);
        }
    }
}
